A trade deficit occurs when a country imports more goods and services than it exports. This means that the value of the imported products is greater than the value of the exported ones, resulting in an overall loss of wealth for the importing nation.